package dawnland03.model.quest;

import dawnland03.model.utility.Utility;

import java.util.HashMap;
import java.util.Map;

/**
 * User: Petru Obreja (obrejap@yahoo.com)
 * Date: Jan 23, 2010
 * Time: 7:12:06 PM
 */
public class QuestFactory {
    public static Quest createGatherCoalQuest(Integer quantity){
        Map<QuestParam, Object> params = new HashMap<QuestParam, Object>();
        params.put(QuestParam.QUANTITY, quantity);
        return new Quest(Utility.getNextUuid(), QuestType.GATHER_COAL, params);
    }

    public static Quest createGatherIronQuest(Integer quantity){
        Map<QuestParam, Object> params = new HashMap<QuestParam, Object>();
        params.put(QuestParam.QUANTITY, quantity);
        return new Quest(Utility.getNextUuid(), QuestType.GATHER_IRON, params);
    }

    public static Quest createMoveQuest(Integer destionationMatrixCellId){
        Map<QuestParam, Object> params = new HashMap<QuestParam, Object>();
        params.put(QuestParam.DESTINATION, destionationMatrixCellId);
        return new Quest(Utility.getNextUuid(), QuestType.MOVE, params);
    }
}
